package com.example.demo.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

/**
 * v3 Schema注解对应的是v2 Swagger的ApiModel
 */
@Data
@Builder
@Schema(description = "用户信息")
public class User4 {
    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名称")
    private String name;

    @Schema(description = "用户年龄")
    private Integer age;

    @Schema(description = "用户邮箱")
    private String email;
}
